ds_map_empty


描述

This function will simply return false if the specified (previously created) ds_map contains any key/value pairs, or true if it does not.


语法:

ds_map_empty(id);

参数 描述
id 要检查的数据结构的id。


返回:

Boolean(布尔值)


例如:

if ds_map_empty(inventory)
   {
   weight = 0;
   ;

The above code checks to see if the ds_map indexed in the variable "inventory" has any key/value pairs and if it does not it sets the variable "weight" to 0.